<?php

/**
 * @author LulaPresidente
 * @copyright 2007
 */

function connectionToDb()
{
set_time_limit(60);
	$con = mysql_connect("127.0.0.1","root","");
// $con = mysql_connect("132.68.160.206","student","qweewq");
//	$con = mysql_connect("localhost","apache","abs/2");
//$ret = mysql_query("alter database ,'css' character set hebrew;");
//$ret = mysql_query("alter database 'css'  collate hebrew_general_ci;");
//$ret = mysql_query("set character set hebrew;");

	mysql_query("SET character_set_client = hebrew");
	mysql_query("SET character_set_connection = hebrew");
	mysql_query("SET character_set_results = hebrew"); 
	//mysql_query("SET character_set_results=hebrew;");
	return $con;
}
//----------------------------------------------------

?>
